﻿@{
    ViewBag.Title = "UpdateNum";
    Layout = "~/Views/Shared/_Layout.cshtml"; 
}
<script type="text/javascript">
    var api = frameElement.api;
    window.onload = function () {
        document.getElementById('editnum1').value = api.data.Num;
        document.getElementById('oid').value = api.data.Oid;
        document.getElementById('cid').value = api.data.Cid;
        document.getElementById('num').value = api.data.Num;
    };
    api.button(
        {
            name: '确定',
            callback: function () {
                $("form").submit();
                return false;
            },
            focus: true
        },
        {
            name: '取消'
        }
        /*, 更多按钮.. */
    )
        // 锁屏
        .lock();
    var isok = false;
    function OnSuccess(e) {
        if (e.IsSuccess) {
            api.reload();
        } else {
            api.alert(e.Msg);
        }
    }
</script>

@using (Ajax.BeginForm("UpdateNum", new AjaxOptions { OnSuccess = "OnSuccess" }))
{   
   
        <input type="hidden" class="input small jine" id="oid" name="oid" />
        <input type="hidden" class="input small jine" id="cid" name="cid" />
        <input type="hidden" class="input small jine" id="num" name="num" />
        <dl>
            <dd>
                <input type="text" class="input small jine" id="editnum1" name="editnum1" />
            </dd>
        </dl>
    
}



